package org.example.utils;

import com.thoughtworks.xstream.annotations.XStreamConverter;
import com.thoughtworks.xstream.converters.extended.ToAttributedValueConverter;

import java.io.Serializable;
import java.util.List;

/**
 * 	数据转储中间格式化转换
 * @author Wang
 *
 */
@XStreamConverter(value = ToAttributedValueConverter.class, strings = { "list" })
public class XmlData<T> implements Serializable {

	/**
	 * 序列化ID
	 */
	private static final long serialVersionUID = -7810657972069285814L;

	private String name;

	private List<T> list;

	public XmlData() {

	}

	public XmlData(String name, List<T> list) {
		this.name = name;
		this.list = list;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

}
